Skip to content

Interface's methods should not return concrete class#23

Open
FrantzUml wants to merge 1 commit intolaminas:2.13.xfrom
FrantzUml:patch-2
Open

Interface's methods should not return concrete class#23
FrantzUml wants to merge 1 commit intolaminas:2.13.xfrom
FrantzUml:patch-2

Conversation

@FrantzUml
Copy link

Changed the return type to 'static' for PhpDocs.
A minima 'UriInterface' if you do not want static

Changed the return type to 'static' for PhpDocs.
A minima 'UriInterface' if you do not want static

Signed-off-by: FrantzUml <[email protected]>
Copy link
Member

@Ocramius Ocramius left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From my PoV, this is valid.

WDYT, @froschdesign?

@froschdesign
Copy link
Member

Makes sense to me. But the concrete implementation of this component must also be modified:

laminas-uri/src/Uri.php

Lines 37 to 40 in 95a41a7

/**
* Generic URI handler
*/
class Uri implements UriInterface

@alexmerlin
Copy link
Member

@FrantzUml any update on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants